package library.and.xps.com.step.m.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by XPS on 2017/5/16.
 */

public class TeamManager extends BaseResponce {
    @Override
    public String toString() {
        return "TeamManager{" +
                "obj='" + obj.toString() + '\'' +
                ", list=" + list.toString() +
                '}';
    }

    /**
     * error : null
     * obj : 89
     * list : [{"departmentid":89,"creater":0,"dname":"测试部门","teamid":89,"parentid":0},{"departmentid":89,"creater":0,"dname":"测试部门2","teamid":89,"parentid":0}]
     */

    //默认的部门ID
    private String obj;
    private List<ListBean> list;

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable {
        @Override
        public String toString() {
            return "ListBean{" +
                    "departmentid=" + departmentid +
                    ", creater=" + creater +
                    ", dname='" + dname + '\'' +
                    ", teamid=" + teamid +
                    ", parentid=" + parentid +
                    '}';
        }

        /**
         * departmentid : 89
         * creater : 0
         * dname : 测试部门
         * teamid : 89
         * parentid : 0
         */

        private int departmentid;
        private int creater;
        private String dname;
        private int teamid;
        private int parentid;

        public int getDepartmentid() {
            return departmentid;
        }

        public void setDepartmentid(int departmentid) {
            this.departmentid = departmentid;
        }

        public int getCreater() {
            return creater;
        }

        public void setCreater(int creater) {
            this.creater = creater;
        }

        public String getDname() {
            return dname;
        }

        public void setDname(String dname) {
            this.dname = dname;
        }

        public int getTeamid() {
            return teamid;
        }

        public void setTeamid(int teamid) {
            this.teamid = teamid;
        }

        public int getParentid() {
            return parentid;
        }

        public void setParentid(int parentid) {
            this.parentid = parentid;
        }
    }
}
